<template>
	<view>

		<view>
			<view class="v1">
				<view class="v2">
					<text>指南说明</text>
				</view>
				<view class="s"></view>
			</view>


			<view v-for="(item, index) in newsBulletin" :key="item.id" :ref="'item'+index" @click="onClick(item.id)"
				class="v3" style="padding: 10px 0px 10px 15px;">
				<view class="v4">
					<text>{{item.newsTitle}}</text>
				</view>
				<view class="s" style="margin-top: 10px;"></view>
				<view class="tb1">
					<u-icon name="arrow-right" color="#2979ff" size="22"></u-icon>
				</view>
			</view>

			

			<!-- <view class="v1">
				<view class="v2">
					<text>费用相关业务</text>
				</view>
				<view class="s"></view>
			</view>

			<view class="v3" style="padding: 10px 0px 10px 15px;">
				<view class="v4">
					<text>门诊费用</text>
				</view>
				<view class="s" style="margin-top: 10px;"></view>
				<view class="tb1">
					<u-icon name="arrow-right" color="#2979ff" size="22"></u-icon>
				</view>
			</view>

			<view class="v3" style="padding: 10px 0px 10px 15px;">
				<view class="v4">
					<text>在线退款</text>
				</view>
				<view class="s" style="margin-top: 10px;"></view>
				<view class="tb1">
					<u-icon name="arrow-right" color="#2979ff" size="22"></u-icon>
				</view>
			</view>

			<view class="v3" style="padding: 10px 0px 10px 15px;">
				<view class="v4">
					<text>核酸费用</text>
				</view>
				<view class="s" style="margin-top: 10px;"></view>
				<view class="tb1">
					<u-icon name="arrow-right" color="#2979ff" size="22"></u-icon>
				</view>
			</view>

			<view class="v1">
				<view class="v2">
					<text>其他业务</text>
				</view>
				<view class="s"></view>
			</view>

			<view class="v3" style="padding: 10px 0px 10px 15px;">
				<view class="v4">
					<text>健康百科</text>
				</view>
				<view class="s" style="margin-top: 10px;"></view>
				<view class="tb1">
					<u-icon name="arrow-right" color="#2979ff" size="22"></u-icon>
				</view>
			</view>
 -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newsBulletin: null,
			}
		},
		onLoad() {
			this.findAllNewsBulletin();
		},
		methods: {
			findAllNewsBulletin() {
				uni.request({
					url: "http://localhost:9000/system/system/news-bulletin/findAllNews",
					method: 'post',
					data: this.healthquery,
					success: (res) => {
						this.newsBulletin = res.data.data.list
						console.log(res)
						// this.getsod()
						// this.dataList = res.data.data.list
						// console.log(this.dataList[0].paytime)
						// console.log(this.dataList[0].paytime.)
					}
				})
			},
			onClick(id) {
				console.log(id)
					uni.navigateTo({
						url: "./zhinanxq?id=" + id,
						// url: "./details?id=" + e.id,
					})
			},
		},
	}
</script>

<style>
	page {
		background-color: #fff;
	}

	.v1 {
		width: 100%;
		height: 50px;
		margin-left: 30px;
	}

	.v2 {
		font-size: 26px;
		color: #000;
		margin-top: 20px;
	}

	.s {
		border: 2px solid #f4f4f4;
		margin-top: 20px;
	}

	.v3 {
		width: 100%;
		height: 40px;
		margin-left: 30px;
		padding: 0px 5px;
	}

	.v4 {
		font-size: 22px;
		color: #815339;
		margin-top: 5px;
	}

	.tb1 {
		float: left;
		margin: -32px 0px 0px 200px;
	}
</style>
